package StructureData;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import po.StructurePO;

public class StructureDataController extends UnicastRemoteObject implements StructureDataService 
{
	StructureDataHelper sdh = new StructureDataHelper();
	
	
	public StructureDataController() throws RemoteException 
	{
		super();
	}

	public boolean Insert(StructurePO aim) throws RemoteException 
	{
		return sdh.setStructure(aim);
	}

	public boolean Update(StructurePO aim) throws RemoteException 
	{
		return sdh.setStructure(aim);
	}

	public StructurePO Get() throws RemoteException 
	{
		return sdh.getStructure();
	}

}

